<template>
  <div>
    <!-- 标题警示 -->
    <el-alert
      title="对公司名称、公司地址、营业执照、公司地区的更新，将使得公司资料被重新审核，请谨慎修改"
      type="info"
      show-icon
      :closable="false"
    />
    <!-- 内容区域 -->
    <el-form ref="form" :model="form" label-width="80px">
      <el-form-item label="公司名称" class="fir">
        <el-input v-model="form.name" style="width:400px" disabled />
      </el-form-item>
      <el-form-item label="公司地址">
        <el-input v-model="form.companyAddress" style="width:400px" disabled />
      </el-form-item>
      <el-form-item label="公司邮箱">
        <el-input v-model="form.mailbox" style="width:400px" disabled />
      </el-form-item>
      <el-form-item label="备注">
        <el-input v-model="form.remarks" type="textarea" style="width:400px" disabled />
      </el-form-item>
      <el-form-item />
    </el-form>
  </div>
</template>

<script>
import { getcompanyDesc } from '@/api/setting'
export default {
  data() {
    return {
    // 公司信息表单
      form: {}
    }
  },
  created() {
    this.getcompanyDesc()
  },
  methods: {
    async getcompanyDesc() {
      const res = await getcompanyDesc()
      // console.log(res[0])
      this.form = res[0]
    }
  }
}
</script>

<style scoped>
.fir {
  margin-top: 50px;
}
</style>
